package com.demo2do.fms.admin.service.data;

import java.util.List;
import java.util.Map;

import com.demo2do.core.entity.page.Page;
import com.demo2do.fms.admin.entity.report.data.OilPriceReportSearch;
import com.demo2do.fms.admin.service.DataService;
import com.demo2do.fms.entity.data.cost.OilPrice;

/**
 * 
 * @author Ysy
 *
 */
public interface OilPriceService extends DataService<OilPrice>{
    
    /**
     * count oil_price by orgIds
     * 
     * @param orgIds
     * @return
     */
    public int count(List<Long> orgIds);
    
    /**
     * list oil_price by orgIds and page
     * 
     * @param orgIds
     * @param page
     * @return
     */
    public List<OilPrice> list(List<Long> orgIds, Page page);
    
    /**
     * get oil_price by orgIds and oil_type
     * 
     * @param orgId
     * @param oilType
     * @return
     */
    public OilPrice getOilPrice(Long orgId , Long oilType);
    
    /**
     * 
     * @param operator
     * @param oilPrice
     */
    public void create(Long operator , OilPrice oilPrice);
    
    /**
     * @param search
     * @return
     */
    public List<Map<String, Object>> exportAll(OilPriceReportSearch search);

}
